import request from '@/utils/request'// request就是axios  @表示src目录
export default{
  getCourseInfoById(id) {
    return request({
      url: `/admin/edu/course/getById/${id}`,
      method: 'GET'
    })
  },
  updateById(courseInfo) {
    return request({
      url: '/admin/edu/course/update',
      method: 'PUT',
      data: courseInfo
    })
  },
  getPageList(pageNum, pageSize, courseQuery) {
    return request({
      url: `/admin/edu/course/list/${pageNum}/${pageSize}`,
      method: 'GET',
      params: courseQuery
    })
  },
  saveCourseInfo(courseInfoForm) {
    return request({
      url: '/admin/edu/course/save-course-info',
      method: 'POST',
      data: courseInfoForm
    })
  }
}
